package com.xyz.service.impl;

import com.xyz.entity.Girl;
import com.xyz.repository.GirlRepository;
import com.xyz.service.GirlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by sunny on 2016/12/20.
 */
@Service
public class GirlServiceImpl implements GirlService {
    @Autowired
    private GirlRepository girlRepository;

    @Override
    public List<Girl> getGirlList() {
        return girlRepository.findAll();
    }
}
